package test;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class HelloWorld extends JFrame {

	public HelloWorld() {
		this.setTitle("Hello");
		this.setLocation(100, 100);
		this.setSize(200, 100);
		this.setLayout(new BorderLayout());
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		
		final JPanel jpanel = new JPanel();
		jpanel.setLayout(new FlowLayout());
		jpanel.add(new JLabel("Hello World!!"));
		this.getContentPane().add(jpanel);
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new HelloWorld().setVisible(true);
	}

	private static final long serialVersionUID = 0L;
}
